package com.dongzhu1428.express.module1.mapper.express;

import com.dongzhu1428.express.module1.dto.controllerDto.Message.GetAllConversationResultDto;
import com.dongzhu1428.express.module1.entity.Message;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 
 * @since 2022-12-09
 */
@Mapper
public interface MessageMapper extends BaseMapper<Message> {
   List<GetAllConversationResultDto.Conversation> getAllConversation(@Param("userId") int userId);

   List<Message> getConversationDetail(@Param("userId")int userId,@Param("targetId")int targetId);
}
